import type { ModalProps } from 'antd';
import { Modal } from 'antd';

function CusModal(props: ModalProps) {
  const { title = '新增', width = 480, open, destroyOnClose = false, ...restProps } = props;

  return <Modal title={title} width={width} open={open} destroyOnClose={destroyOnClose} {...restProps} />;
}

export default CusModal;
